{% extends "base.html" %}
{# Copyright The IETF Trust 2016, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% block title %}Ballot writeup and notes for {{ doc }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Ballot writeup and notes
        <br>
        <small class="text-body-secondary">{{ doc }}</small>
    </h1>
    <form method="post">
        {% csrf_token %}
        {% bootstrap_form ballot_writeup_form %}
        <div class="form-text my-3">
            Technical summary, Working Group summary, document quality, personnel, IANA note. This text will be appended to all announcements and messages to the IRTF or RFC Editor.
            {% if warn_lc %}
                <p class="text-danger">
                    This document has not completed IETF Last Call.  Please do not issue the ballot early without good reason.
                </p>
            {% endif %}
            {% if warn_unexpected_state %}
                <p class="text-danger">
                    This document is in an IESG state of "{{warn_unexpected_state}}". It would be unexpected to issue a ballot while in this state.
                </p>
            {% endif %}
        </div>
        <button type="submit"
                class="btn btn-primary"
                name="save_ballot_writeup"
                value="Save Ballot Writeup">Save</button>
        <button type="submit"
                class="btn {% if ballot_issue_danger %}btn-danger{% else %}btn-warning{% endif %}"
                name="issue_ballot"
                value="Save and issue ballot">
            Save &amp; {% if ballot_issued %}re-{% endif %}issue ballot
        </button>
        <a class="btn btn-secondary float-end"
           href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">
            Back
        </a>
    </form>
{% endblock %}